package demo2.assignment2;

/**
 * Factory Producer
 */
public class PhoneFactoryProducer {

    public PhoneAbstractFactory getPhoneFactory(String type) {
        if (type.equals("Brand"))
            return new PhoneBrandFactory();
        else if (type.equals("Color"))
            return new PhoneColorFactory();
        return null;
    }
}
